test of convergence of improper integrals